//
//  JHRulerView.h
//  iOS尺子控件
//
//  Created by JH on 2017/4/18.
//  Copyright © 2017年 JH. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "JHRulerStyle.h"
typedef NS_ENUM(NSInteger,JHRulerType){
    JHRulerTypePicker = 0,
    JHRulerTypeNormal = 1,
};

@interface JHRulerView : UIView
@property (nonatomic , strong, nonnull) JHRulerStyle *rulerStyle;
@property (nonatomic , assign) JHRulerType rulerType;//default is LXMRulerTypePicker

/**
 在更改了rulerStyle里面的属性或者rulerType之后，需要调用该方法才会生效
 */
- (void)reloadData;



/**
 rulerType == LXMRulerTypePicker有效，markView指示的值
 */
@property (nonatomic, assign, readonly) CGFloat currentValue;


/**
 rulerType == LXMRulerTypePicker有效，currentValue变化的回调
 */

@property (nonatomic, copy, nullable) void(^valueChangeCallback)(CGFloat currentValue);

/**
 rulerType == LXMRulerTypePicker有效，手动设置ruler指示的值
 */
- (void)updateCurrentValue:(CGFloat)value animated:(BOOL)animated;


- (instancetype)initWithFrame:(CGRect)frame rulerShowType:(rulerViewShowType)showType;
















@end     
